import {Injectable} from "@angular/core";
import {RequestServerHTTPService} from "../services/RequestServerHTTPService";

@Injectable()
export class CarouselEffectHTTPService {
    private _retrieveImagesInfosUrl = "/positionImage/retrieveImagesInfo.do";

    constructor(private _requestServer:RequestServerHTTPService) {
    }

    getCarouselImages(target:string, succeedCallback, errorCallBack):void {
        this._requestServer.getRequestServerForBack(this._retrieveImagesInfosUrl, {target: target}, succeedCallback, errorCallBack);
    }
}
